<!DOCTYPE html>
<html>
<head>
    <title>uploadimg.html</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>
<!--涉及文件上传，这里就需要multipart/form-data
     文件上传三要素:
        数据类型:enctype
        上传控件:file
        请求方式:post
-->
<form enctype="multipart/form-data" method="post" action="/upload">
    文件:<input type="file" name="head_img"/>
    姓名:<input type="text" name="name"/>
    <input type="submit" value="上传"/>
</form>

</body>
</html>